SELECT count(*) num FROM sk_products WHERE cid3=132\" class=\" and isopen = 1 and isweb = 1 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\" class=\" and isopen = 1 and isweb = 1' at line 1